package com.example.combwyaq.visualinterface.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.fragment.app.Fragment;

import com.example.combwyaq.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class PhoneLogFragment extends Fragment {


    private TextView goId;

    public PhoneLogFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View inflate = inflater.inflate(R.layout.fragment_phone, container, false);
        goId = (TextView) inflate.findViewById(R.id.go_id);
        goId.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setAction("201");
                getActivity().sendBroadcast(intent);
            }
        });
        return inflate;
    }

    private void initView() {

    }
}
